package tw.com.tuan.ui.util;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.ScrollPane;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

public class ImgViewer {
	private static JPanel jpImgMenu;
	
	public static JScrollPane getPanel() {
		
		jpImgMenu = new JPanel();
		jpImgMenu.setLayout(new FlowLayout(FlowLayout.LEFT));
		jpImgMenu.setBackground(Color.BLACK);
			
		jpImgMenu.setPreferredSize(new Dimension(800, 110));
		
		//btn.setB
		//JButton btnImg1 = new JButton(new ImageIcon("http://www.programmer-club.com.tw/pc2020v5/images/LOGO-v6_20090908.gif"));
		JButton btnImg1 = new JButton();
		JButton btnImg2 = new JButton();
		JButton btnImg3 = new JButton();
		JButton btnImg4 = new JButton();
		
		btnImg1.setPreferredSize(new Dimension(150, 100));
		btnImg2.setPreferredSize(new Dimension(150, 100));
		btnImg3.setPreferredSize(new Dimension(150, 100));
		btnImg4.setPreferredSize(new Dimension(150, 100));
		
		btnImg1.setBackground(Color.WHITE);
		btnImg2.setBackground(Color.WHITE);
		btnImg3.setBackground(Color.WHITE);
		btnImg4.setBackground(Color.WHITE);
		
		jpImgMenu.add(btnImg1);
		jpImgMenu.add(btnImg2);
		jpImgMenu.add(btnImg3);
		jpImgMenu.add(btnImg4);

		JScrollPane scrollpane = new JScrollPane(jpImgMenu);
		
		return scrollpane;
	}
}
